Skip to content

public Election::canAddCandidate

Read it at the source

Description

php
public Election->canAddCandidate ( CondorcetPHP\Condorcet\Candidate|string $candidate ): bool

Check if a candidate is already registered. Equivalent of !$election->hasCandidate($candidate, false).

Parameter

candidate: CondorcetPHP\Condorcet\Candidate|string

String or Condorcet/Vote object.

Return value

(bool) True if your candidate is available, false otherwise.


Released under the MIT License.